﻿using System;
using System.Windows.Forms;

namespace AsyncLibrary.StatusListener
{
  public class ControlListenerBase : IStatusListener
  {
    private readonly Control _control;

    public ControlListenerBase(Control control)
    {
      _control = control;
    }

    public Control TargetControl
    {
      get { return _control; }
    }

    public virtual void SetProgress(int value)
    {
    }

    public virtual void SetProgresMax(int value)
    {
    }

    public virtual void SetMode(StatusProgressMode value)
    {
    }

    public virtual void SetStatus(string message)
    {
    }

    public virtual void SetInfo(string text)
    {
    }

    public virtual void FatalError(Exception ex)
    {
    }
  }
}